home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / Framework / BasicLoader.hxx < prev    next >
Text File  |  1995-07-26  |  1KB  |  53 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // $Id: BasicLoader.hxx,v 1.1 1994/02/18 19:49:06 bmott Exp $
  3. ///////////////////////////////////////////////////////////////////////////////
  4. // BasicLoader.hxx
  5. //
  6. //   This abstract base class provides methods to load object files into the
  7. // the simulator.
  8. //
  9. //
  10. // BSVC "A Microprocessor Simulation Framework"
  11. // Copyright (c) 1993
  12. // By: Bradford W. Mott
  13. // November 5,1993
  14. //
  15. ///////////////////////////////////////////////////////////////////////////////
  16. // $Log: BasicLoader.hxx,v $
  17. // Revision 1.1  1994/02/18  19:49:06  bmott
  18. // Initial revision
  19. //
  20. ///////////////////////////////////////////////////////////////////////////////
  21.  
  22. #ifndef BASICLOADER_HXX
  23. #define BASICLOADER_HXX
  24.  
  25. #include "String.h"
  26.  
  27. class BasicCPU;
  28.  
  29. ///////////////////////////////////////////////////////////////////////////////
  30. // BasicLoader class declaration
  31. ///////////////////////////////////////////////////////////////////////////////
  32. class BasicLoader {
  33.   protected:
  34.     BasicCPU*   cpu;
  35.                                                 
  36.   public:
  37.     BasicLoader(BasicCPU* c)
  38.         : cpu(c)
  39.     {};
  40.  
  41.     virtual ~BasicLoader()
  42.     {};
  43.  
  44.     // Return the loader's CPU
  45.     inline BasicCPU* CPU()
  46.     { return(cpu); }
  47.  
  48.     // Load the file (Error Message or "" is returned)
  49.     virtual String Load(const char *filename, int space)=0;
  50. };
  51. #endif
  52.  
  53.